"""URL paths for Organizer App"""
from django.urls import path

from .views import (
    TagDetail, TagList,
    StartupDetail, StartupList,
)

from .views import (
    TagCreate,
    TagDelete,
    TagUpdate,
    StartupCreate,
    StartupUpdate,
    StartupDelete,
)

from .views import (
    NewsLinkCreate,
    NewsLinkDetail,
    NewsLinkUpdate,
    NewsLinkDelete,
)

urlpatterns = [
    path('startup/',
         StartupList.as_view(),
         name="startup_list"
         ),
    path('startup/<str:slug>/create/',
         StartupCreate.as_view(),
         name="startup_create",
         ),
    path('startup/<str:slug>/update/',
         StartupUpdate.as_view(),
         name="startup_update",
         ),
    path('startup/<str:slug>/delete/',
         StartupDelete.as_view(),
         name="startup_delete",
         ),
    path('startup/<str:slug>/',
         StartupDetail.as_view(),
         name="startup_detail"
         ),
    path('tag/', TagList.as_view(), name="tag_list"),
    path(
        "tag/create/",
        TagCreate.as_view(),
        name='tag_create',
        ),
    path("tag/<str:slug>/",
         TagDetail.as_view(),
         name="tag_detail"
         ),
    path("tag/<str:slug>/update/",
         TagUpdate.as_view(),
         name="tag_update",
         ),
    path(
        "tag/<str:slug>/delete/",
        TagDelete.as_view(),
        name="tag_delete",
        ),
    path(
        "startup/<str:startup_slug>/add_article/",
        NewsLinkCreate.as_view(),
        name="newslink_create",
    ),
    path(
        "startup/<str:startup_slug>/<str:newslink_slug>/",
        NewsLinkDetail.as_view(),
        name="newslink_detail",
    ),
    path(
        "startup/<str:startup_slug>/<str:newslink_slug>/delete/",
        NewsLinkDelete.as_view(),
        name="newslink_delete",
    ),
    path(
        "startup/<str:startup_slug>/<str:newslink_slug>/update/",
        NewsLinkUpdate.as_view(),
        name="newslink_update",
    ),
]
